
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';

@Injectable()
export class RightDataGridComponentViewmodel extends ViewModel {
    public bindingPath = '/jmsmds';
    // farrisDataGrid列集合定义 在对应component中赋值
    public right_data_gridColumns:any;
    // datGrid 列集合名称 用以bindData使用
    public dataGridColumnsName:string;

    public dom = {
  "right-data-grid": {
    "type": "DataGrid",
    "resourceId": "right-data-grid",
    "visible": {
      "useQuote": false,
      "isExpression": false,
      "value": true
    },
    "id": "right-data-grid",
    "size": {},
    "readonly": {
      "useQuote": false,
      "isExpression": false,
      "value": false
    },
    "fields": [
      {
        "type": "GridField",
        "resourceId": "mdbh_19d9eabf_xtdl",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdbh_19d9eabf_xtdl",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdbh",
          "fullPath": "mdbh",
          "isExpression": false,
          "value": "mdbh"
        },
        "dataField": "mdbh",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店编号",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdmc_1a7c9342_cfzc",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdmc_1a7c9342_cfzc",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdmc",
          "fullPath": "mdmc",
          "isExpression": false,
          "value": "mdmc"
        },
        "dataField": "mdmc",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店名称",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdsf_fd2e7a5a_fzjo",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdsf_fd2e7a5a_fzjo",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdsf",
          "fullPath": "mdsf",
          "isExpression": false,
          "value": "mdsf"
        },
        "dataField": "mdsf",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店省份",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdszqy_8757adb9_onbt",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdszqy_8757adb9_onbt",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdszqy",
          "fullPath": "mdszqy",
          "isExpression": false,
          "value": "mdszqy"
        },
        "dataField": "mdszqy",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店所在区域",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdxxdz_35365bbd_fqnf",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdxxdz_35365bbd_fqnf",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdxxdz",
          "fullPath": "mdxxdz",
          "isExpression": false,
          "value": "mdxxdz"
        },
        "dataField": "mdxxdz",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店详细地址",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mddz_8fe4265d_wiiy",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mddz_8fe4265d_wiiy",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mddz",
          "fullPath": "mddz",
          "isExpression": false,
          "value": "mddz"
        },
        "dataField": "mddz",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店店长",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdlxdh_f1193377_nnc4",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdlxdh_f1193377_nnc4",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdlxdh",
          "fullPath": "mdlxdh",
          "isExpression": false,
          "value": "mdlxdh"
        },
        "dataField": "mdlxdh",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店联系电话",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdyj_5c871df0_ci3b",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdyj_5c871df0_ci3b",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdyj",
          "fullPath": "mdyj",
          "isExpression": false,
          "value": "mdyj"
        },
        "dataField": "mdyj",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店邮件",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdjmf_1ce12ddc_115y",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdjmf_1ce12ddc_115y",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdjmf",
          "fullPath": "mdjmf",
          "isExpression": false,
          "value": "mdjmf"
        },
        "dataField": "mdjmf",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店加盟费",
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      }
    ],
    "multiSelect": false,
    "showLineNumber": false,
    "lineNumberTitle": "#",
    "groupTotalText": "Total",
    "filterable": false,
    "groupable": false,
    "rowClass": ""
  }
};
    @NgCommand({
        name: 'Remove1',
        params: {
            id: '{DATA~/#{right-data-grid-component}/jmsmds/id}'
        },
        paramDescriptions: {
            id: { type: 'string' }
        }
    })
    public Remove1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'RouteToAdd1',
        params: {
            url: '690e66da-9d04-48a5-b2c3-c69910465b4b',
            params: '{"action":"LoadAndAdd1"}',
            tabName: '',
            enableRefresh: ''
        },
        paramDescriptions: {
            url: { type: 'string' },
            params: { type: 'string' },
            tabName: { type: 'string' },
            enableRefresh: { type: 'string' }
        }
    })
    public RouteToAdd1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'RouteToEdit1',
        params: {
            url: '690e66da-9d04-48a5-b2c3-c69910465b4b',
            params: '{"action":"LoadAndEdit1", "id":"{DATA~/#{left-data-grid-component}/id}"}',
            idToEdit: '',
            tabName: '',
            enableRefresh: ''
        },
        paramDescriptions: {
            url: { type: 'string' },
            params: { type: 'string' },
            idToEdit: { type: 'string' },
            tabName: { type: 'string' },
            enableRefresh: { type: 'string' }
        }
    })
    public RouteToEdit1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'RouteToView1',
        params: {
            url: '690e66da-9d04-48a5-b2c3-c69910465b4b',
            params: '{"action":"LoadAndView1", "id":"{DATA~/#{left-data-grid-component}/id}"}',
            idToView: '',
            tabName: '',
            enableRefresh: ''
        },
        paramDescriptions: {
            url: { type: 'string' },
            params: { type: 'string' },
            idToView: { type: 'string' },
            tabName: { type: 'string' },
            enableRefresh: { type: 'string' }
        }
    })
    public RouteToView1(commandParam?: any): Observable<any> { return; }

}